<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆注册</title>
<style>
*{
    margin: 0;
    padding: 0;
    box-sizing: content-box;
}
body{
    background: rgba(57, 141, 238, 0.02);
}
#header{
  padding: 10px 0px;
  font-size: 20px;
  color: white;
  background:rgb(57,141,238) ;
  width: 100%;
  margin: auto;
}
#user-name{
    width: 1000px;
    margin: auto;
}
.container{
    width: 600px;
    margin:150px auto;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 0 18px 0 rgba(57, 141, 238, 0.12);
    position: relative;
}
button{
    border: none;
    background: #fff;
}
input{
    padding: 5px 10px;
    line-height: 30px;
    outline: none;
    font-size: 12px;
    box-sizing: border-box;
    border: 1px solid #d6d6d6;
    border-radius: 3px;
    height: 54px;
    width: 296px;
    display: block;
    margin: 20px auto;
}
input:focus{
    background-color: #f7fafe;
}
.hide{
    display: none;
}
#login,
#register{
    display: inline-block;
    width: 130px;
    height: 46px;
    line-height: 46px;
    border: 1px solid #398dee;
    box-sizing: border-box;
    border-radius: 3px;
    padding: 0;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    background-color: #398dee;
    color: #fff;
    margin-top: 30px;
}
.select{
    position: absolute;
    left: -84px;
    top: 0px;
}
#for-login,
#for-register{
    display: block;
    border: 1px solid #d6d6d6; 
    font-size: 16px;
    padding: 10px 20px;
    margin-bottom: 10px;
}
.active{
    color: #fff;
    background: #398dee;
}
button:hover{
    cursor: pointer;
}
.error{
    display: none;
    color: red;
    position: absolute;
    width: 200px;
    margin-left: -100px;
    left: 50%;
}
</style>
</head>
<body>
    <header id="header">
        <div id="user-name" style="width: 1000px;margin: auto">
            大熊猫云笔记
        </div>
    </header>
     
    <section class="container">
        <div class="select">
            <button type="button"  id="for-login" class="active">登陆</button>
            <button type="button"  id="for-register">注册</button>
        </div> 
        <form id="login-from">
            <input id="login-account" type="text" placeholder="账号"/>
            <input id="login-password" type="password" placeholder="密码"/>
            <div id="login-error" class="error">账号或密码错误</div>
            <button type="button"  id="login">登陆</button>
        </form>
        <form id="register-form" class="hide">
            <input id="register-name" type="text" placeholder="昵称"/>            
            <input id="register-account" type="text" placeholder="账号"/>
            <input id="register-password" type="password" placeholder="密码"/>
            <div id="register-error" class="error">请输入完整信息</div>
            <button type="button" id="register">注册</button>
        </form>
    </section>
    <script src="/script/vendor/jquery-1.9.1.min.js"></script> 
    <script type="text/javascript" src="/script/init.js"></script>
</body>
</html>